i = input('请输入字符串')
k = 0
f = 0
s = 0
m = 0
for j in i:
    # 注意比较的值为j，小数点前的代数值
    if j.isspace():  # 判断空格
        k += 1
    elif j.isdigit():  # 判断数字
        s += 1
    elif j.isalpha():  # 判断字母
        m += 1
    else:
        f += 1
print(f'空格有{k}个，数字有个{s}，字母有{m}个，符号有{f}个')


# 注意中英文的问号不同
o = 'https://hqyj.com?userId=13546985'
t4 = o.partition('?')
print(t4)
a = t4[len(t4)-1].split('=')
print(a[0],a[1])

h = 'https://blog.csdn.net/weixin_64002295?spm=1010.2135.=3001.5343'
t5 = h.partition('?')
b = t5[len(t5)-1].split('=')
print(b[0],b[1],b[2])